from matplotlib import pyplot
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
pic=pyplot.figure()
ax=Axes3D(pic)
x=np.arange(-1,3,0.3)
y=np.arange(-1,3,0.3)
a,b=np.meshgrid(x,y)
c=a**2+b**2
ax.plot_surface(a,b,c,cmap=pyplot.get_cmap('rainbow'))
ax.set_zlim(-1,10)
pyplot.title('3dgraphic')
pyplot.show()
